3052e3bd1e369b3f2031099704134957c3138135,maven-shade-plugin/src/main/java/org/apache/maven/plugins/shade/resource/ComponentsXmlResourceTransformer.java,ComponentsXmlResourceTransformer,processResource,#InputStream#,60
Before Change
try
{
reader = ReaderFactory.newXmlReader( f );
newDom = Xpp3DomBuilder.build( reader );
}
catch ( Exception e )
{
throw new IOException( "Error parsing components.xml in " + is );
}
// Only try to merge in components if there are some elements in the component-set
if ( newDom.getChild( "components" ) == null )
{
return;
}
Xpp3Dom[] children = newDom.getChild( "components" ).getChildren( "component" );
for ( int i = 0; i < children.length; i++ )
{
Xpp3Dom component = children[i];
String role = component.getChild( "role" ).getValue();
After Change
}
};
Reader reader = ReaderFactory.newXmlReader( bis );
newDom = Xpp3DomBuilder.build( reader );
}
catch ( Exception e )
{
throw (IOException) new IOException( "Error parsing components.xml in " + is ).initCause( e );
}
// Only try to merge in components if there are some elements in the component-set
if ( newDom.getChild( "components" ) == null )
{
return;
}
Xpp3Dom[] children = newDom.getChild( "components" ).getChildren( "component" );
for ( int i = 0; i < children.length; i++ )
{
Xpp3Dom component = children[i];
String role = getValue( component, "role" );
role = getRelocatedClass( role, relocators );